package com.rx.core.enm;

/**
 * 所有版权归 广西梧州 陈锦韬 所有
 *
 * @version V1.0
 * @Title: RX_ENABLE
 * @Package com.rx.core.enm
 * @Description: 启用、停用
 * @author: 陈锦韬
 * @date: 2020\6\9 0009
 * @Copyright: 2020 陈锦韬  All rights reserved.
 */
public enum RX_ENABLE {
    /**
     * 启用
     */
    TRUE("true","启用"),
    /**
     * 禁用
     */
    FALSE("false","禁用"),
    ;
    private String code;
    private String desc;
    private RX_ENABLE(String code,String desc){
        this.code = code;
        this.desc = desc;
    }

    public String getCode() {
        return code;
    }
    public void setCode(String code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }
    public void setDesc(String desc) {
        this.desc = desc;
    }

    public static boolean isEnable(String value){
        if(RX_ENABLE.TRUE.getCode().equalsIgnoreCase(value)){
            return true;
        }
        return false;
    }

}
